package com.ihr360.excel.view;

import java.util.List;

public class ExcelSheetDef<T> {
    private String title;
    private List<ExcelColumnDef> columnDefs;
    private List<IExcelRowDef<T>> rows;
    private boolean showColumnCode;

    public ExcelSheetDef(String title, List<ExcelColumnDef> columnDefs, List<IExcelRowDef<T>> rows) {
        this.title = title;
        this.columnDefs = columnDefs;
        this.rows = rows;
    }

    public ExcelSheetDef(String title, List<ExcelColumnDef> columnDefs, List<IExcelRowDef<T>> rows, boolean showColumnCode) {
        this.title = title;
        this.columnDefs = columnDefs;
        this.rows = rows;
        this.showColumnCode = showColumnCode;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public List<ExcelColumnDef> getColumnDefs() {
        return columnDefs;
    }

    public void setColumnDefs(List<ExcelColumnDef> columnDefs) {
        this.columnDefs = columnDefs;
    }

    public List<IExcelRowDef<T>> getRows() {
        return rows;
    }

    public void setRows(List<IExcelRowDef<T>> rows) {
        this.rows = rows;
    }

    public boolean isShowColumnCode() {
        return showColumnCode;
    }
}